package org.builder.xml;

import java.io.Serializable;

public class MenuItem implements Serializable,Comparable<MenuItem> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2656543232519426640L;
	
	private String label;

	private String href;
	
	private boolean isHeader ;

	private String name;
	
	private int pos;

	public int getPos() {
		return pos;
	}

	public void setPos(int pos) {
		this.pos = pos;
	}

	public boolean isHeader() {
		return isHeader;
	}

	public void setHeader(boolean isHeader) {
		this.isHeader = isHeader;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String task) {
		this.href = task;
	}

	public int compareTo(MenuItem menuItem) {
		int boolCompare = new Boolean(isHeader).compareTo(new Boolean(menuItem.isHeader));
		return boolCompare==0? pos-menuItem.getPos():boolCompare;
	}
	
	
	



}
